Learn R Programming

rsbml (version 2.30.0)

SBML import: Read in an SBML file (start here)

Description

Read an SBML file into R.

Usage

rsbml_read(filename, text, dom = TRUE, strict = FALSE, schema = FALSE, consistency = TRUE)

Arguments

filename
the name of the SBML file to parse
text
a string of SBML text to parse (instead of file)
dom
whether to convert directly to the S4 DOM (TRUE, the default) or leave as the internal SBMLDocument.
strict
whether to report warnings in addition to errors or not (FALSE, the default).
schema
whether to perform XML schema validation
consistency
whether to perform consistency checks; recommended but might cause performance deficiencies.

Value

SBML object, or a SBMLDocument if dom is FALSE.

Examples

Run this code
  # Read an SBML file
  file <- system.file("sbml", "GlycolysisLayout.xml", package = "rsbml")
  doc <- rsbml_read(file)
  
  # Read an SBML string
  string <- paste(readLines(file),collapse="\n")
  doc <- rsbml_read(text = string)

Run the code above in your browser using DataLab